package com.dongnam.quanly.common.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "KhoHang")
public class KhoHang extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "MaKhoHang", length = 100)
	private String maKhoHang;

	@Column(name = "TenKhoHang", length = 100)
	private String tenKhoHang;

	@Column(name = "DienGiai", length = 200)
	private String dienGiai;

	public String getMaKhoHang() {
		return maKhoHang;
	}

	public void setMaKhoHang(String maKhoHang) {
		this.maKhoHang = maKhoHang;
	}

	public String getTenKhoHang() {
		return tenKhoHang;
	}

	public void setTenKhoHang(String tenKhoHang) {
		this.tenKhoHang = tenKhoHang;
	}

	public String getDienGiai() {
		return dienGiai;
	}

	public void setDienGiai(String dienGiai) {
		this.dienGiai = dienGiai;
	}

	public void fillkhoHang(KhoHang khohang) {

		this.maKhoHang = khohang.maKhoHang;
		this.tenKhoHang = khohang.tenKhoHang;
		this.dienGiai = khohang.dienGiai;
	}

	public KhoHang() {
		// TODO Auto-generated constructor stub
	}

}
